package code_daifanhuizhidefangfadingyiyudiaorong;

public class test2 {
    public static void main(String[] args) {

        //调用方法获取长方形的面积，再进行比较
        double area1 = GetArea(5.3,1.7);
        double area2 = GetArea(2.4,2.7);

        if (area1>area2){
            System.out.println("第一个长方形面积大点");
        }else {
            System.out.println("第二个长方形面积大点");
        }

    }


    public static double GetArea(double num1,double num2) {
        return num1*num2;
    }
}
